import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
import cn from './local_cn'
import en from './local_en'
import eleEn from "element-ui/lib/locale/lang/en";
import eleZhCN from "element-ui/lib/locale/lang/zh-CN";
let lang = localStorage.getItem('lang') || 'zh'
const i18n = new VueI18n({
    locale: lang,
    messages: {
      zh: Object.assign(eleZhCN,cn),
      en: Object.assign(eleEn,en),
    }
})
export default i18n
